import {
    mapMutations
} from "vuex";

export const mixin = {
    methods: {
        add() {},
        ...mapMutations(["add"]),
    },
    mounted() {
        console.log('mixin');
    },
}


export const mixin2 = {
    methods: {
        change() {},
        remove() {},
        edit() {
            console.log(1);
            this.isShow = -1;
            this.$store.commit("edit");
        },
        ...mapMutations(["change", "remove"]),
    },
}